<?php

use App\Admin\Middleware\AuthenticateMiddleware;
use App\Admin\Middleware\PermissionsMiddleware;
use App\Route;

Route::group('plugins-edge', function () {
    Route::resourceSc('news', Plugins\Edge\Admin\Controller\NewsController::class);
    Route::post('news/switch-toggle', [Plugins\Edge\Admin\Controller\NewsController::class, 'switchToggle']);
    })->middleware([AuthenticateMiddleware::class, PermissionsMiddleware::class]);